package com.ly.mpayment.persist.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * DownShop entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="downshoprecharge"

)

public class DownShopRecharge  implements java.io.Serializable {


    // Fields

     private String downrechargeuuid;
     private PlatFormAccount platFormAccount;
     private User user;
     private Date rechargetime;
     private BigDecimal rechargeamount;
     private Integer rechargestatus;
     private Date createtime;
     private String remark;
     private int payType;
     private BigDecimal balance;

    // Constructors

    /** default constructor */
    public DownShopRecharge() {
    }


    /** full constructor */
    public DownShopRecharge(PlatFormAccount platFormAccount, User user, Date rechargetime, BigDecimal rechargeamount, Integer rechargestatus, Date createtime) {
        this.platFormAccount = platFormAccount;
        this.user = user;
        this.rechargetime = rechargetime;
        this.rechargeamount = rechargeamount;
        this.rechargestatus = rechargestatus;
        this.createtime = createtime;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="downrechargeuuid", unique=true, nullable=false, length=40)
    public String getDownrechargeuuid() {
		return downrechargeuuid;
	}

	public void setDownrechargeuuid(String downrechargeuuid) {
		this.downrechargeuuid = downrechargeuuid;
	}

	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="platformuuid")

    public PlatFormAccount getPlatFormAccount() {
        return this.platFormAccount;
    }

    public void setPlatFormAccount(PlatFormAccount platFormAccount) {
        this.platFormAccount = platFormAccount;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name="rechargetime", length=19)

    public Date getRechargetime() {
        return this.rechargetime;
    }

    public void setRechargetime(Date rechargetime) {
        this.rechargetime = rechargetime;
    }

    @Column(name="rechargeamount", precision=28, scale=5)

    public BigDecimal getRechargeamount() {
        return this.rechargeamount;
    }

    public void setRechargeamount(BigDecimal rechargeamount) {
        this.rechargeamount = rechargeamount;
    }

    @Column(name="rechargestatus")

    public Integer getRechargestatus() {
        return this.rechargestatus;
    }

    public void setRechargestatus(Integer rechargestatus) {
        this.rechargestatus = rechargestatus;
    }

    @Column(name="createtime", length=19)
    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name="paytype")
	public int getPayType() {
		return payType;
	}


	public void setPayType(int payType) {
		this.payType = payType;
	}

    @Column(name="balance", precision=28, scale=5)
    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }





}
